<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__ROOT__/Static/bootstrap/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css"/>
	
	<style type="text/css">
		body{
			margin-bottom: 100px;
			font-family: "微软雅黑";
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<table class="table table-bordered table-hover">
		<tr style="background: #F5F5F5;">
			<th>货品ID</th>
			<foreach from="$spec" key="$kk" value="$vv">
			  <th>{$vv.taname}</th>
			</foreach>
			<th>库存</th>
			<th style="width: 200px;">货号</th>
			<th>操作</th>
		</tr>
		<foreach from="$da" key="$k" value="$v">
		    <tr style="background: #CEE6FE;font-size: 14px;">
		    	    
					<th>{$v.glid}</th>
					<foreach from="$v.combine" key="$ke" value="$va">
						<th>{$va}</th>
					</foreach>
					<th>{$v.number}</th>
					<th>{$v.inventory}</th>
					<th>
					    <a href="{|U:'Admin/Goodslist/edit',array('glid'=>$v['glid'],'gid'=>$v['gid'])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
						<a href="{|U:'Admin/Goodslist/del',array('glid'=>$v['glid'])}" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
					</th>
			</tr>
		</foreach>
		<form action="" method="post">
			<tr style="background: #CEE6FE;">
				<th>添加货品</th>
				<foreach from="$spec" key="$k" value="$v">
					
					<th style="width: 200px;">
						<select name="spec[]">
							<option value="0">--请选择--</option>
							<foreach from="$v['opt']" key="$ke" value="$va">
							    <option value="{$va.gtid}">{$va.gtvalue}</option>
							</foreach>
						</select>
					</th>
				</foreach>
				
				<th><input type="text" name="number" id="" value="" /></th>
				<th style="width: 200px;"><input type="text" name="inventory" id="" value="" /></th>
				<th></th>
	</table>
            <input type="submit" value="保存添加" class="hd-btn hd-btn-primary" style="width: 70px;height: 50px;"/>
    </form>
	</div>
	</div>
	</div>
</body>
</html>